﻿using AgileBoard.Domain;

namespace AgileBoard.Dtos.Mappers
{
    public class LabelDTOMapper : BaseDTOMapper
    {
        public static LabelDTO MapToDTO(Label model)
        {
            var dto = new LabelDTO();

            dto.LabelID = model.LabelID;
            dto.IterationID = model.IterationID;
            dto.Date = model.Date;

            return dto;
        }

        public static Label MapFromDTO(LabelDTO dto)
        {
            var Label = new Label();
            Label.LabelID = dto.LabelID;
            Label.IterationID = dto.IterationID;
            Label.Date = dto.Date;

            return Label;
        }
    }
}